package file;

import java.io.File;
import java.io.FilenameFilter;

/**
 * User: heihaier@xfuweng.com
 * Date: 2015/7/6
 * Time: 14:05
 */
public class FileFilter implements FilenameFilter {
    @Override
    public boolean accept(File dir, String name) {

        return name.endsWith(".xml") || new File(name).isDirectory();
    }
}
